import { http } from "@/utils/http";

// 获取单价配置
export const getPriceList = data => {
  return http.request("post", "/energy/energyUnitPrice/listUnitPrice", {
    data
  });
};

// 更新单价配置
export const updatePrice = (data, type) => {
  return http.request("post", `/energy/energyUnitPrice/update${type}`, {
    data
  });
};

// 查看单价配置
export const viewPrice = (data, type) => {
  return http.request("post", `/energy/energyUnitPrice/view${type}`, {
    data
  });
};

// 删除单价配置
export const delPrice = (data, type) => {
  return http.request("post", `/energy/energyUnitPrice/del${type}`, {
    data
  });
};
